import Vue from 'vue';
import Router from 'vue-router';
const loginPage = resolve => require(['@/page/common/login-page'], resolve)
const rechargePassword = resolve => require(['@/page/common/recharge-password'], resolve)
//消息管理
const messageList = resolve => require(['@/page/messageManage/messageList'],resolve)//系统
const messageEdit = resolve => require(['@/page/messageManage/messageEdit'],resolve)//系统
const messageDetail = resolve => require(['@/page/messageManage/messageDetail'],resolve)//系统

//公告管理
const announceList = resolve => require(['@/page/announceManage/announceList'],resolve)//系统
const announceDetail = resolve => require(['@/page/announceManage/announceDetail'],resolve)//系统
const announceEdit = resolve => require(['@/page/announceManage/announceEdit'],resolve)//系统

//房东管理
const landlordList = resolve => require(['@/page/landlordManage/landlordList'],resolve)//系统
const landlordEdit = resolve => require(['@/page/landlordManage/landlordEdit'],resolve)//系统
const landlordDetail = resolve => require(['@/page/landlordManage/landlordDetail'],resolve)//系统

//房源管理
const houseList = resolve => require(['@/page/houseManage/houseList'],resolve)//系统
const houseEdit = resolve => require(['@/page/houseManage/houseEdit'],resolve)//系统
const houseDetail = resolve => require(['@/page/houseManage/houseDetail'],resolve)//系统
const houseEditMore = resolve => require(['@/page/houseManage/houseEditMore'],resolve)//系统

//订单管理
const orderList = resolve => require(['@/page/orderManage/orderList'],resolve)//系统
const orderDetail = resolve => require(['@/page/orderManage/orderDetail'],resolve)//系统
const orderPrint = resolve => require(['@/page/orderManage/orderPrint'],resolve)//系统

//退组管理
const rentalbackList = resolve => require(['@/page/rentalbackManage/rentalbackList'],resolve)//系统
const rentalbackEdit = resolve => require(['@/page/rentalbackManage/rentalbackEdit'],resolve)//系统
const rentalbackDetail = resolve => require(['@/page/rentalbackManage/rentalbackDetail'],resolve)//系统
const rentalbackPrint = resolve => require(['@/page/rentalbackManage/rentalbackPrint'],resolve)//系统

//合同管理
const contractList = resolve => require(['@/page/contractManage/contractList'],resolve)//系统
const contractEdit = resolve => require(['@/page/contractManage/contractEdit'],resolve)//系统
const contractDetail = resolve => require(['@/page/contractManage/contractDetail'],resolve)//系统

//财务统计（贼多）
const houseStatus = resolve => require(['@/page/statisticsManage/houseStatus'],resolve)//系统
const renter = resolve => require(['@/page/statisticsManage/renter'],resolve)//系统
const longRent = resolve => require(['@/page/statisticsManage/longRent'],resolve)//系统
const getLongRent = resolve => require(['@/page/statisticsManage/getLongRent'],resolve)//系统
const water = resolve => require(['@/page/statisticsManage/water'],resolve)//系统
const electric = resolve => require(['@/page/statisticsManage/electric'],resolve)//系统
const clearFee = resolve => require(['@/page/statisticsManage/clearFee'],resolve)//系统
const yearRent = resolve => require(['@/page/statisticsManage/yearRent'],resolve)//系统
const dayRent = resolve => require(['@/page/statisticsManage/dayRent'],resolve)//系统

//优惠规则
const ruleList = resolve => require(['@/page/ruleManage/ruleList'],resolve)//系统

//报修管理
const repairList = resolve => require(['@/page/repairManage/repairList'],resolve)//系统
const repairDetail = resolve => require(['@/page/repairManage/repairDetail'],resolve)//系统

//反馈管理
const houseFeedBack = resolve => require(['@/page/feedBackManage/houseFeedBack'],resolve)//系统
const systemFeedBack = resolve => require(['@/page/feedBackManage/systemFeedBack'],resolve)//系统
const houseFeedBackDetail = resolve => require(['@/page/feedBackManage/houseFeedBackDetail'],resolve)//系统
const systemFeedBackDetail = resolve => require(['@/page/feedBackManage/systemFeedBackDetail'],resolve)//系统

//提现管理
const presentList = resolve => require(['@/page/presentManage/presentList'],resolve)//系统

//操作日志
const operationList = resolve => require(['@/page/operationManage/operationList'],resolve)//系统
const operationDetail = resolve => require(['@/page/operationManage/operationDetail'],resolve)//系统

//权限管理
const accountEdit = resolve => require(['@/page/systemManage/accountEdit'],resolve)
const accountList = resolve => require(['@/page/systemManage/accountList'],resolve)
const roleEdit = resolve => require(['@/page/systemManage/roleEdit'],resolve)
const roleList = resolve => require(['@/page/systemManage/roleList'],resolve)

//关于我们
const abourt = resolve => require(['@/page/abourtManage/abourt'],resolve)//系统

//使用帮助
const help = resolve => require(['@/page/helpManage/help'],resolve)//系统
const helpEdit = resolve => require(['@/page/helpManage/helpEdit'],resolve)//系统

//联系我们
const connection = resolve => require(['@/page/connectionManage/connection'],resolve)//系统

//预警管理
const warningList = resolve => require(['@/page/warningManage/warningList'],resolve)//系统
const warnningEdit = resolve => require(['@/page/warningManage/warnningEdit'],resolve)//系统
const rentEdit = resolve => require(['@/page/rentManager/rentEdit'],resolve)//系统
const rentList = resolve => require(['@/page/rentManager/rentList'],resolve)//系统
const rentDetail = resolve => require(['@/page/rentManager/rentDetail'],resolve)//系统
const fillContract = resolve => require(['@/page/rentManager/fillContract'],resolve)//系统

//租客管理
const renterList = resolve => require(['@/page/renterManage/renterList'],resolve)//系统
const renterDetail = resolve => require(['@/page/renterManage/renterDetail'],resolve)//系统
const getRent = resolve => require(['@/page/renterManage/getRent'],resolve)//系统
const readout = resolve => require(['@/page/renterManage/readout'],resolve)//系统

Vue.use(Router)

export default new Router({
  mode: 'history',
  base:'/sys/',
  routes: [
      {
          path: '/loginPage',
          name: 'loginPage',
          component: loginPage
      },
      {
        path: '/rechargePassword',
        name: 'rechargePassword',
        component: rechargePassword
      },
      // {
      //   path: '/',
      //   name: 'messageList',
      //   component: messageList
      // },
      // {
      //   path: '/messageEdit',
      //   name: 'messageEdit',
      //   component: messageEdit
      // },
      // {
      //   path: '/messageDetail',
      //   name: 'messageDetail',
      //   component: messageDetail
      // },
      {
        path: '/',
        name: 'announceList',
        component: announceList
      },
      {
        path: '/announceEdit',
        name: 'announceEdit',
        component: announceEdit
      },
      {
        path: '/announceDetail',
        name: 'announceDetail',
        component: announceDetail
      },
      {
        path: '/landlordList',
        name: 'landlordList',
        component: landlordList
      },
      {
        path: '/landlordDetail',
        name: 'landlordDetail',
        component: landlordDetail
      },
      {
        path: '/landlordEdit',
        name: 'landlordEdit',
        component: landlordEdit
      },
      {
        path: '/houseList',
        name: 'houseList',
        component: houseList
      },
      {
        path: '/houseDetail',
        name: 'houseDetail',
        component: houseDetail
      },
      {
        path: '/houseEdit',
        name: 'houseEdit',
        component: houseEdit
      },
      {
        path: '/houseEditMore',
        name: 'houseEditMore',
        component: houseEditMore
      },
      {
        path: '/orderList',
        name: 'orderList',
        component: orderList
      },
      {
        path: '/orderDetail',
        name: 'orderDetail',
        component: orderDetail
      },
      {
        path: '/orderPrint',
        name: 'orderPrint',
        component: orderPrint
      },
      {
        path: '/rentalbackList',
        name: 'rentalbackList',
        component: rentalbackList
      },
      {
        path: '/rentalbackEdit',
        name: 'rentalbackEdit',
        component: rentalbackEdit
      },
      {
        path: '/rentalbackDetail',
        name: 'rentalbackDetail',
        component: rentalbackDetail
      },
      {
        path: '/rentalbackPrint',
        name: 'rentalbackPrint',
        component: rentalbackPrint
      },
      {
        path: '/contractList',
        name: 'contractList',
        component: contractList
      },
      {
        path: '/contractEdit',
        name: 'contractEdit',
        component: contractEdit
      },
      {
        path: '/contractDetail',
        name: 'contractDetail',
        component: contractDetail
      },
      {
        path: '/clearfee',
        name: 'clearfee',
        component: clearFee
      },
      {
        path: '/electric',
        name: 'electric',
        component: electric
      },
      {
        path: '/getLongRent',
        name: 'getLongRent',
        component: getLongRent
      },
      {
        path: '/houseStatus',
        name: 'houseStatus',
        component: houseStatus
      },
      {
        path: '/longRent',
        name: 'longRent',
        component: longRent
      },
      {
        path: '/renter',
        name: 'renter',
        component: renter
      },
      {
        path: '/water',
        name: 'water',
        component: water
      },
      {
        path: '/yearRent',
        name: 'yearRent',
        component: yearRent
      },
      {
        path: '/dayRent',
        name: 'dayRent',
        component: dayRent
      },
      {
        path: '/ruleList',
        name: 'ruleList',
        component: ruleList
      },
      {
        path: '/repairList',
        name: 'repairList',
        component: repairList
      },
      {
        path: '/repairDetail',
        name: 'repairDetail',
        component: repairDetail
      },
      {
        path: '/houseFeedBack',
        name: 'houseFeedBack',
        component: houseFeedBack
      },
      {
        path: '/houseFeedBackDetail',
        name: 'houseFeedBackDetail',
        component: houseFeedBackDetail
      },
      {
        path: '/systemFeedBack',
        name: 'systemFeedBack',
        component: systemFeedBack
      },
      {
        path: '/systemFeedBackDetail',
        name: 'systemFeedBackDetail',
        component: systemFeedBackDetail
      },
      {
        path: '/presentList',
        name: 'presentList',
        component: presentList
      },
      {
        path: '/operationList',
        name: 'operationList',
        component: operationList
      },
      {
        path: '/operationDetail',
        name: 'operationDetail',
        component: operationDetail
      },
      {
        path: '/accountEdit',
        name: 'accountEdit',
        component: accountEdit
      },
      {
        path: '/accountList',
        name: 'accountList',
        component: accountList
      },
      {
        path: '/roleEdit',
        name: 'roleEdit',
        component: roleEdit
      },
      {
        path: '/roleList',
        name: 'roleList',
        component: roleList
      },
      {
        path: '/abourt',
        name: 'abourt',
        component: abourt
      },
      {
        path: '/help',
        name: 'help',
        component: help
      },
      {
        path: '/helpEdit',
        name: 'helpEdit',
        component: helpEdit
      },
      {
        path: '/connection',
        name: 'connection',
        component: connection
      },
      {
        path: '/warningList',
        name: 'warningList',
        component: warningList
      },
      {
        path: '/warnningEdit',
        name: 'warnningEdit',
        component: warnningEdit
      },
      {
        path: '/rentList',
        name: 'rentList',
        component: rentList
      },
      {
        path: '/rentEdit',
        name: 'rentEdit',
        component: rentEdit
      },
      {
        path: '/rentDetail',
        name: 'rentDetail',
        component: rentDetail
      },
      {
        path: '/fillContract',
        name: 'fillContract',
        component: fillContract
      },
      {
        path: '/renterDetail',
        name: 'renterDetail',
        component: renterDetail
      },
      {
        path: '/renterList',
        name: 'renterList',
        component: renterList
      },
      {
        path: '/getRent',
        name: 'getRent',
        component: getRent
      },
      {
        path: '/readout',
        name: 'readout',
        component: readout
      },
  ]
})
